[#ftl]
[#list tables as table]
COMMENT ON TABLE ${table.name} IS '${table.comment}';
    [#list table.feilds as feild]
        ALTER TABLE ${table.name} ALTER COLUMN ${(feild.name!)?lower_case} TYPE ${feild.type} USING ${(feild.name!)?lower_case}::${(feild.type)?replace('\\(.*\\)','','r')};
        COMMENT ON COLUMN ${table.name}.${(feild.name!)?lower_case} IS '${feild.comment}';
    [/#list]
[/#list]
